package com.ruoyi.merchandise.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡密管理对象 tb_member_card
 * 
 * @author 李文保
 * @date 2025-03-12
 */
public class MemberCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String type;

    /** 卡密 */
    @Excel(name = "卡密")
    private String code;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private String status;

    /** 兑换状态 */
    @Excel(name = "兑换状态")
    private String exchangeStatus;

    /** 查看账户 */
    @Excel(name = "查看账户")
    private String account;

    /** 购买账户 */
    @Excel(name = "购买账户")
    private String phone;

    /** 兑换时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "兑换时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exghangeTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String demo1;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String demo2;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String demo3;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String demo4;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setExchangeStatus(String exchangeStatus) 
    {
        this.exchangeStatus = exchangeStatus;
    }

    public String getExchangeStatus() 
    {
        return exchangeStatus;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setExghangeTime(Date exghangeTime) 
    {
        this.exghangeTime = exghangeTime;
    }

    public Date getExghangeTime() 
    {
        return exghangeTime;
    }
    public void setDemo1(String demo1) 
    {
        this.demo1 = demo1;
    }

    public String getDemo1() 
    {
        return demo1;
    }
    public void setDemo2(String demo2) 
    {
        this.demo2 = demo2;
    }

    public String getDemo2() 
    {
        return demo2;
    }
    public void setDemo3(String demo3) 
    {
        this.demo3 = demo3;
    }

    public String getDemo3() 
    {
        return demo3;
    }
    public void setDemo4(String demo4) 
    {
        this.demo4 = demo4;
    }

    public String getDemo4() 
    {
        return demo4;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("code", getCode())
            .append("status", getStatus())
            .append("exchangeStatus", getExchangeStatus())
            .append("account", getAccount())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("exghangeTime", getExghangeTime())
            .append("demo1", getDemo1())
            .append("demo2", getDemo2())
            .append("demo3", getDemo3())
            .append("demo4", getDemo4())
            .toString();
    }
}
